import { Button, Space, DatePicker, Popover } from 'antd';
import moment from 'moment';
export default props => {
  let renderContent = () => {
    return (
      <Space>
        <DatePicker picker="month" defaultValue={moment()} />
      </Space>
    );
  };
  return (
    <Popover
      placement="bottomLeft"
      content={renderContent}
      title="Title"
      trigger="click"
    >
      <Button type="primary">{moment().format('YYYY-MM')}</Button>
    </Popover>
  );
};
